﻿using AutoMapper;
using Common.Lib.Dto;
using Server.Todo.Context;

namespace Server.Todo.Extensions
{
    public class AutoMapperProFile : MapperConfigurationExpression
    {
        /// <summary>
        /// Auto Mapper 映射关系
        /// </summary>
        public AutoMapperProFile()
        {
            CreateMap<ToDo, ToDoDto>().ReverseMap();
            CreateMap<Memo, MemoDto>().ReverseMap();
            CreateMap<User, UserDto>().ReverseMap();
        }
    }
}
